package cn.xiyun.xiyuncc.feignClient;

import cn.xiyun.xiyuncc.Coursefallback.CourseFallbackFactory;
import cn.xiyun.xiyuncc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseFallbackFactory.class)
public interface CourseFeignClient {

    /**
     * 订单信息
     * @return JSONResult
     */
    @RequestMapping(value = "/course/orderData/{ids}", method = RequestMethod.GET)
    JSONResult orderData(@PathVariable("ids") String ids);


}
